package com.sunday.common.sentinel.study.e3_Openfegin;


import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class EchoConsumer {

    @Resource
    private EchoClient echoClient;

    @GetMapping(value = "/hello/{name}")
    public String apiHello(@PathVariable String name) {
        return echoClient.echo(name);
    }

}
